package com.igame.Service;

import com.igame.common.Result;
import com.igame.dto.ContactDto;
import com.igame.dto.MessageDto;
import com.igame.entity.PrivateMessages;

import java.util.List;
import java.util.Set;

public interface PrivateMessagesService {
     Result initiateContact(ContactDto contactDto);

     Result<Set<String>> getAllContacts(Integer userId);

     Result sendMessage(MessageDto messageDto);

     Result<List<PrivateMessages>> getMessagesBetweenUsers(Integer senderId, Integer receiverId);

     Integer getReceiverId(String receiverName);
          // 获取未读的数量
     Result<Integer> getReadMessagesCountForReceiver(Integer receiverId);

     // 更新为已读
     void updateMessageStatusForReceiver(Integer loginId,Integer receiverId);

     Result<Boolean> deleteContact(Integer loginId,Integer ContactId);
}
